|
|
|
|
|
- Specific features
- parameter
<Drive variable>.DeleteDirectory (Function) In french: <Variable Drive>.SupprimeRépertoire
Not available
Deletes a directory and its files from a remote drive.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)
IF oDrive.DeleteDirectory("/MyDirectories/MySubdirectory/") = False THEN
Error("Unable to delete directory", ErrorInfo())
RETURN
END
Syntax
<Result> = <Drive>.DeleteDirectory(<Directory to delete>)
<Result>: Boolean - True if the directory was deleted,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Drive>: Drive or gglDrive variable Name of the Drive or gglDrive variable that corresponds to the drive to be used. The connection to the drive must have been previously established. Otherwise, the element is not copied. <Directory to delete>: Character string Absolute path of the directory to be deleted. If this parameter does not correspond to a valid directory path, the directory will not be deleted. Remarks Specific features - Any subdirectories and files contained in the specified directory will also be deleted.
- A directory deleted with <Drive variable>.DeleteDirectory cannot be recreated directly. The user must log in again to recreate the directory.
<Directory to delete> parameter Examples of valid paths: "/holidays directory/2021/" "\photos" Examples of invalid paths: "directoryA/DirectoryB" "This/Path/Is/invalid" "c:\Users\" Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|